package cn.edu.scau.cmi.huangmaoqin.interProgramming;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;

public class GUIController {
	@FXML
	private TextArea showText;
	@FXML
	private Button ok;
	@FXML
	public void Btn_Click(ActionEvent event) {
		Student graduateStudent = new GraduateStudent();
		showText.appendText(graduateStudent.learn()+"\n");

		Student undergraduateStudent = new UndergraduateStudent();
		showText.appendText(undergraduateStudent.learn()+"\n");
	}
}
